import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import homePage from '@/components/homePage'     //首页
import introduce from '@/components/introduce'   //活动简介
import buildGroup from '@/components/buildGroup'   //组建战队
import addgroup from '@/components/addGroup'        //加入战队
import groupDetail from '@/components/groupDetail'        //战队详情
import myGroup from '@/components/myGroup'        //我的战队
import totalRankList from '@/components/totalRankList'        //战队总榜，战队分榜，个人分榜


Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/hello',
            name: 'Hello',
            component: HelloWorld
        },
        {
            path: '/',
            name: 'homePage',
            component: homePage
        },
        {
            path: '/introduce',
            name: 'introduce',
            component: introduce
        },
        {
            path: '/buildGroup/:id',
            name: 'buildGroup',
            component: buildGroup
        },
        {
            path:'/addGroup',
            name:'addGroup',
            component:addgroup
        },
        {
            path:'/groupDetail',
            name:'groupDetail',
            component:groupDetail
        },
        {
            path:'/myGroup',
            name:'myGroup',
            component:myGroup
        },
        {
            path:'/totalRankList/:page',
            name:'totalRankList',
            component:totalRankList
        },
    ]
})
